package com.rxz.redisdemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rxz.redisdemo.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component(value = "userDao")
public interface UserDao extends BaseMapper<Users> {
    @Select("select name from users where phoneNumber = #{phoneNumber}")
    String getName(@Param("phoneNumber") String phoneNumber);
}
